//
//  HJChatMessageCell.h
//  XWC
//
//  Created by Hello on 2022/10/25.
//

#import "HJChatBaseCell.h"
#import "HJChatMessageLayout.h"
#import "HJCircleProgress.h"
#import "HJActivityIndicatorView.h"

typedef NS_ENUM(NSInteger, HJChatCellLongTapType){
    HJChatCellLongTapTypeContentView,
    HJChatCellLongTapTypeAvatar,
};

typedef NS_ENUM(NSInteger, HJChatCellClickType){
    HJChatCellClickTypeAvatar,
    HJChatCellClickTypeContent,
};


NS_ASSUME_NONNULL_BEGIN


@class HJChatMessageCell;

@protocol HJChatMessageCellDelegate <NSObject>

@optional

- (void)chatMessageCell:(HJChatMessageCell *)cell longGesture:(HJChatCellLongTapType)longTapType;
- (void)chatMessageCell:(HJChatMessageCell *)cell tapGesture:(HJChatCellClickType)clickType;
- (void)chatMessageCellDidClickRetryButton:(HJChatMessageCell *)cell;



@end

@interface HJChatMessageCell : HJChatBaseCell

@property (nonatomic, weak) UILabel *nameLabel;
@property (nonatomic, weak) UIButton *retryButton;
@property (nonatomic, weak) HJActivityIndicatorView *indicatorView;
@property (nonatomic, weak) UIImageView *avatarImageView;
@property (nonatomic, weak) UIView *containerView;

//后面做了多选功能用, 先不实现
@property (nonatomic, weak) UIImageView *selectIcon;
@property (nonatomic, weak) UIButton *selectedView;

@property (nonatomic, weak) id <HJChatMessageCellDelegate> delegate;


@end

NS_ASSUME_NONNULL_END
